package com.jvm.allocation;

/**
 * @ClassName com.jvm.allocation
 * Description: <类功能描述>. <br>
 * <p>
 * <使用说明>
 * </p>
 * @Author tree
 * @Date 2019-05-19 10:59
 * @Version 1.0
 */
public class Test1 {
    /**
     * -verbose:gc   输出每次GC的相关情况。
     * -Xms20M -Xmx20M -Xmn10M  -XX:+PrintGCDetails -XX:SurvivorRatio=8 -Dfile.encoding=UTF-8
     * @param args
     */
    public static void main(String[] args) {
        int _1MB = 1024*1024;
        byte[]allocation1,allocation2,allocation3,allocation4 ;
        allocation1=new byte[2*_1MB];
        allocation2=new byte[2*_1MB];
        allocation3=new byte[2*_1MB];
        allocation4=new byte[4*_1MB]; //    Minor GC
    }
}
